package excercise;

public class EX01_019 {
	
	public static void main(String[] args) {
		
		int x1 = 3; int x2 = 3; int x3 = 2;
		int y1 = 2; int y2 = 4; int y3 = 2;
		int z1 = 0; int z2 = 0; int z3 = 0;
		
		if(x1 > 2) {
			if(y1 > 2) {
				z1 = x1 + y1;
				System.out.println("z1 is " + z1);
			} 
		} else System.out.println("x1 is " + x1);
		
		if(x2 > 2) {
			if(y2 > 2) {
				z2 = x2 + y2;
				System.out.println("z2 is " + z2);
			} 
		} else System.out.println("x2 is " + x2);
		
		if(x3 > 2) {
			if(y3 > 2) {
				z3 = x3 + y3;
				System.out.println("z3 is " + z3);
			} 
		} else System.out.println("x3 is " + x3);
		
	}

}
